		<script type="text/javascript">
			function apagaUser(id)
			{	
				if(confirm('Deseja realmente apagar o usuário selecionado?'))
				{
					window.location = '<?php echo base_url() ?>index.php/blog/apaga/' + id ;
				}
			}
		</script>
		
		
		<h1><?php echo $titulo; ?></h1>
		<br />
		
		<p><?=@$this->session->flashdata('msg');?></p> 
		
		<?php if($nomes) : ?>
		<table>
			<tr>
				<th>Nome</th>
				<th>Data Cadastro</th>
				<th>Data Atualização</th>
				<th>&nbsp;</th>
				<th>&nbsp;</th>
			</tr>
			<?php 
				foreach($nomes as $nome):
			?>
			<tr>
				<td><?php echo $nome->nome; ?></td>
				<td><?php echo $nome->dataCadastro == '' ? '--' : Util::mostraData($nome->dataCadastro); ?></td>
				<td><?php echo $nome->dataAtualizacao == '' ? '--' : Util::mostraDataHora($nome->dataAtualizacao); ?></td>
				<td>
					<?php echo anchor("blog/insere/".$nome->iduser,'<img src="'.base_url().'includes/images/edit.png" alt="Alterar" width="20" />');?>
				</td>
				<td>
					<a href="javascript: apagaUser('<?=$nome->iduser?>')">
						<!--<img src="<?php echo base_url();?>includes/images/delete.png" alt="Excluir" width="20" />-->
						<?=img(array('src'=>'includes/images/delete.png','width'=>'20'))?>
					</a>
					<?php //echo anchor("blog/apaga/".$nome->iduser,'<img src="'.base_url().'includes/images/delete.png" alt="Excluir" width="20" />');?>
				</td>
			</tr>
			<?php		
				endforeach;
			?>
			
		</table>
		<?php else : ?>
			<p style='text-align: center;'>Nenhum Usuário Cadastrado</p>
		<?php endif; ?>
		
